<?php

if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

$zviewConf = @unserialize($_EXTCONF);
if (is_array($zviewConf) && array_key_exists('zendFrameworkIncludePath', $zviewConf)) {
	$zviewZfPath = trim($zviewConf['zendFrameworkIncludePath']);
	if (!empty($zviewZfPath) && is_dir($zviewZfPath)) {
		$zviewPhpIncludePathes = explode(PATH_SEPARATOR, get_include_path());
		if(!in_array($zviewZfPath, $zviewPhpIncludePathes)) {
			array_unshift($zviewPhpIncludePathes, $zviewZfPath);
			set_include_path(implode(PATH_SEPARATOR, $zviewPhpIncludePathes));
			unset($zviewPhpIncludePathes);
		}
	}
	unset($zviewZfPath);
}
unset($zviewConf);

?>